﻿var MyEffect = {
    /*
        Normal Hover
        eg: ul
     */

    hover: function (selector, clsName) {
        $(selector).hover(
            function () {
                $(this).addClass(clsName);
            },
            function () {
                $(this).removeClass(clsName);
            }
        );
    },

    //hover on a table
    tableHover: function (selector, clsName) {
        $(selector).filter(function (index) {
            return index >= 1;
        }).hover(
            function () {
                $(this).addClass(clsName);
            },
            function () {
                $(this).removeClass(clsName);
            }
        );
    }
};